package edu.zut2.abstract_demo;

public class Test {

    public static void main(String[] args) {
        /**
         * 抽象类不能直接实例化，使用是和多态联系到一起
         */
        Usb usb = new Mouse();
        usb.function();
        usb.type = "3.1";
        usb.test();

        Usb usb2 = new Keyboard();
        usb2.type = "3.0";
        usb2.test();
        usb2.function();

    }

}
